package com.nine.common.pojo;


import java.io.Serializable;

import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
* 角色权限
* @TableName acl_role_permission
*/
@EqualsAndHashCode(callSuper = false)
@TableName(value = "acl_role_permission")
@Data
@ApiModel(value="RolePermission对象", description="角色权限")
public class RolePermission implements Serializable {

    /**
    * 
    */
    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty("")
    private String id;
    /**
    * 
    */

    @ApiModelProperty("")
    @TableField(value = "role_id")
    private String roleId;
    /**
    * 
    */

    @ApiModelProperty("")
    @TableField(value = "permission_id")
    private String permissionId;
    /**
    * 逻辑删除 1（true）已删除， 0（false）未删除
    */

    @ApiModelProperty("逻辑删除 1（true）已删除， 0（false）未删除")
    @TableField(value = "is_deleted")
    private Integer isDeleted;
    /**
    * 创建时间
    */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)

    private LocalDateTime gmtCreate;
    /**
    * 更新时间
    */

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;



}
